package com.hospital.demo.model.jiajinpeng;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.stereotype.Repository;

import java.util.Date;

@Repository
public class Surgery {
    private Integer aid;

    private Integer pid;

    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date sdate;

    private String sdoctor;

    private String sroom;

    public Surgery() {
    }

    public Surgery(Integer aid, Integer pid, Date sdate, String sdoctor, String sroom) {
        this.aid = aid;
        this.pid = pid;
        this.sdate = sdate;
        this.sdoctor = sdoctor;
        this.sroom = sroom;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Date getSdate() {
        return sdate;
    }

    public void setSdate(Date sdate) {
        this.sdate = sdate;
    }

    public String getSdoctor() {
        return sdoctor;
    }

    public void setSdoctor(String sdoctor) {
        this.sdoctor = sdoctor;
    }

    public String getSroom() {
        return sroom;
    }

    public void setSroom(String sroom) {
        this.sroom = sroom;
    }
}
